import request from '@/utils/request'

export function addpolicy (params) {
  return request({
    url: '/back/strategy/saveOrUpdate',
    method: 'post',
    data:params
  })
}

export function getPolicyList (params) {
  return request({
    url: '/back/strategy/list',
    method: 'post',
    data:params
  })
}



export function deletepolicy (params) {
  return request({
    url: '/back/strategy/removeById',
    method: 'post',
    data:params
  })
}

export function updateExtime (params) {
  return request({
    url: '/back/strategy/setExecutionTime',
    method: 'post',
    data:params
  })
}


export function updateonoff (params) {
  return request({
    url: '/back/strategy/setStrategyStatus',
    method: 'post',
    data:params
  })
}